/**
 * Created by Administrator on 2017/9/20.
 */
angular.module('common.news', [
        'ui.router',
        'ngStorage',
        'module.news',
    ])

    .run(
        ['$rootScope', '$state', '$stateParams', '$localStorage',
            function ($rootScope, $state, $stateParams, $localStorage) {
                $rootScope.$state = $state;
                $rootScope.$stateParams = $stateParams;
                $localStorage[environmental + "shopid"] = 1514540307866;
            }
        ]
    )

    .config(
        ['$httpProvider', '$locationProvider', '$urlRouterProvider',
            function ($httpProvider, $locationProvider, $urlRouterProvider) {
                //$urlRouterProvider.otherwise('/shouye');
                $urlRouterProvider.otherwise('/newslist');
                $locationProvider.html5Mode(html5mode);
                $httpProvider.defaults.withCredentials = true;
            }
        ]
    );